//封装本地存储数据与读取数据方法
export const SET_TOKEN = (token: string) => {
  localStorage.setItem("token", token);
};

export const GET_TOKEN = () => {
  return localStorage.getItem("token");
};

export const REMOVE_TOKEN = () => {
  localStorage.removeItem("token");
};

export const SET_NAME = (name: string) => {
  localStorage.setItem("name", name);
};

export const GET_NAME = () => {
  return localStorage.getItem("name");
};

export const REMOVE_NAME = () => {
  localStorage.removeItem("name");
};
